package syllabus.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import syllabus.dao.POrganizationMapper;
import syllabus.model.Criteria;
import syllabus.model.POrganization;
import syllabus.service.POrganizationService;

@Service
public class POrganizationServiceImpl implements POrganizationService {
    @Autowired
    private POrganizationMapper pOrganizationMapper;

    private static final Logger logger = LoggerFactory.getLogger(POrganizationServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.pOrganizationMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public POrganization selectByPrimaryKey(Integer id) {
        return this.pOrganizationMapper.selectByPrimaryKey(id);
    }

    public List<POrganization> selectByExample(Criteria example) {
        return this.pOrganizationMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(Integer id) {
        return this.pOrganizationMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(POrganization record) {
        return this.pOrganizationMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(POrganization record) {
        return this.pOrganizationMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.pOrganizationMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(POrganization record, Criteria example) {
        return this.pOrganizationMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(POrganization record, Criteria example) {
        return this.pOrganizationMapper.updateByExample(record, example);
    }

    public int insert(POrganization record) {
        return this.pOrganizationMapper.insert(record);
    }

    public int insertSelective(POrganization record) {
        return this.pOrganizationMapper.insertSelective(record);
    }
}